package com.fanshilz.flower2025.framework.swagger;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {

    // 设置 openapi 基础参数
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("flower2025")
                        .contact(new Contact().name("张富贵").email("www.qq1624.com@qq.com").url("https://blog.csdn.net/qq_36345950"))
                        .version("1.0")
                        .description("flower2025")
                        .license(new License().name("Apache 2.0")));
    }

}

